package controller;

import java.io.FileNotFoundException;
import java.net.URISyntaxException;

import lexerPackage.IToken;
import lexerPackage.ITokenStream;
import lexerPackage.TokenClassEnum;
import lexerPackage.TokenStream;
import lexerPackage.BaseLexer;

public class Test {

	public static void main(String[] args) throws FileNotFoundException,
			URISyntaxException {

		ITokenStream tokenStream1 = new TokenStream();
		ITokenStream tokenStream2 = new TokenStream();
		BaseLexer lexer = new BaseLexer();

		while (true) {
			IToken tk = lexer.getToken();

			if (tk.getClassCode() != TokenClassEnum.EOF) {
				tokenStream1.add(tk);
			} else {
				tokenStream1.add(tk);
				break;
			}

		}

		lexer.setPushbackReader();

		while (true) {
			IToken tk2 = lexer.getToken();
			
			if (tk2.getClassCode() != TokenClassEnum.EOF) {
				tokenStream2.add(tk2);
			} else {
				tokenStream2.add(tk2);
				break;
			}

		}

		// BaseLexer lexer2 = new BaseLexer("words2.txt");
		// IRegion region = new Region(0, 0, 10, 10);
		// IAlignmentMatrix matrix = new SimpleAlignmentMatrix();

		ISelector selector = new SimpleSelector(tokenStream1, tokenStream2);
		// IAligner aligner = new Aligner(tokenStream1, tokenStream2);
		Presenter presenter = new Presenter(tokenStream1, tokenStream2);
		// AlignmentControl controller = new AlignmentControl(selector, aligner,
		// presenter);

	}

}
